A linear space algorithm for computing a longest common increasing subsequence
نویسنده
چکیده
Let X and Y be sequences of integers. A common increasing subsequence of X and Y is an increasing subsequence common to X and Y . In this note, we propose an O(|X| · |Y |)-time and O(|X| + |Y |)-space algorithm for finding one of the longest common increasing subsequences of X and Y , which improves the space complexity of Yang et al. [I.H. Yang, C.P. Huang, K.M. Chao, A fast algorithm for computing a longest common increasing subsequence, Inform. Process. Lett. 93 (2005) 249–253] O(|X| · |Y |)-time and O(|X| · |Y |)-space algorithm, where |X| and |Y | denote the lengths of X and Y , respectively. © 2006 Elsevier B.V. All rights reserved.
منابع مشابه
A simple linear space algorithm for computing a longest common increasing subsequence
This paper reformulates the problem of finding a longest common increasing subsequence of the two given input sequences in a very succinct way. An extremely simple linear space algorithm based on the new formula can find a longest common increasing subsequence of sizes n and m respectively, in time O(nm) using additional min{n,m}+ 1 space.
متن کاملAnother Algorithm for Computing Longest Common Increasing Subsequence for Two Random Input Sequences
We have previously developed several algorithms which deal with different input sequence scenarios respectively. In this paper, another sequential algorithm for computing Longest Common Increasing Subsequence for two random input sequences is reported. It runs in O(m n log p) time complexity and takes space of O(2(m + n + 1) p), where m and n are the length for two input sequences respectively,...
متن کاملA fast algorithm for computing a longest common increasing subsequence
Let A = 〈a1, a2, . . . , am〉 and B = 〈b1, b2, . . . , bn〉 be two sequences, where each pair of elements in the sequences is comparable. A common increasing subsequence of A and B is a subsequence 〈ai1 = bj1 , ai2 = bj2 , . . . , ail = bjl 〉, where i1 < i2 < · · · < il and j1 < j2 < · · · < jl , such that for all 1 k < l, we have aik < aik+1 . A longest common increasing subsequence of A and B i...
متن کاملFinding Longest Increasing and Common Subsequences in Streaming Data
In this paper, we present algorithms and lower bounds for the Longest Increasing Subsequence (LIS) and Longest Common Subsequence (LCS) problems in the data streaming model. For the problem of deciding whether the LIS of a given stream of integers drawn from {1, . . . ,m} has length at least k, we discuss a one-pass streaming algorithm using O(k log m) space, with update time either O(log k) or...
متن کاملAn almost-linear time and linear space algorithm for the longest common subsequence problem
There are two general approaches to the longest common subsequence problem. The dynamic programming approach takes quadratic time but linear space, while the non-dynamic-programming approach takes less time but more space. We propose a new implementation of the latter approach which seems to get the best for both time and space for the
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Inf. Process. Lett.
دوره 99 شماره
صفحات -
تاریخ انتشار 2006